<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_ranking')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-is_ranking" data-rule="required" class="form-control selectpicker" name="row[is_ranking]">
                {foreach name="isRankingList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.is_ranking"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>


    <div class="form-group" data-favisible="type=1">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rank_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rank_id" data-source="talent/talent_school_compress/index" class="form-control selectpage" name="row[rank_id]" type="text" value="{$row.rank_id|htmlentities}">
        </div>
    </div>

    <div class="form-group" data-favisible="type=2">
        <label class="control-label col-xs-12 col-sm-2">{:__('Major_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-major_id" data-source="talent/talent_school_major/selectpage" class="form-control selectpage" data-format-item="{name} - {id}"  data-params='{"custom[pid]":["GT",0]}'  name="row[major_id]" type="text" value="{$row.major_id|htmlentities}">
        </div>
    </div>

    <div class="form-group" data-favisible="type=2">
        <label class="control-label col-xs-12 col-sm-2">{:__('Class_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-class_id" data-source="talent/talent_school_class/index" class="form-control selectpage" data-format-item="{name} - {id}"   name="row[class_id]" type="text" value="{$row.class_id|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Year')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-year" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY" data-use-current="true" name="row[year]" type="text" value="{$row.year}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('School_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-school_id" data-rule="required" data-source="talent/talent_school/index" class="form-control selectpage" name="row[school_id]" type="text" value="{$row.school_id|htmlentities}">
        </div>
    </div>

    <div class="form-group" data-favisible="is_ranking=1">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ranking')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ranking" data-rule="required" class="form-control" name="row[ranking]" type="number" value="{$row.ranking|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
